package com.lynn.mmcc.user.dao.impl;


import java.util.List;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.orm.hibernate3.HibernateTemplate;

import com.lynn.mmcc.common.dao.BaseServiceImpl;
import com.lynn.mmcc.user.dao.HotelDao;
import com.lynn.mmcc.user.request.Hoteloutline;
import com.lynn.mmcc.user.respose.Rhotel;

public class HotelDaoImpl  extends BaseServiceImpl implements HotelDao{

	 private JdbcTemplate jdbcTemplate;
	 
	 private HibernateTemplate hibernateTemplate;
	 

	public HibernateTemplate getHibernateTemplate() {
		return hibernateTemplate;
	}

	public void setHibernateTemplate(HibernateTemplate hibernateTemplate) {
		this.hibernateTemplate = hibernateTemplate;
	}

	public JdbcTemplate getJdbcTemplate() {
		return jdbcTemplate;
	}

	public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
		this.jdbcTemplate = jdbcTemplate;
	}

	public List<Rhotel> queryAllHotel(Hoteloutline hoteloutline) {
		List<Rhotel> hotels = getTemplate().queryForList("queryAllHotel",hoteloutline);
		return hotels;
	}

}
